package com.wms.service.impl;

import com.wms.mapper.CompanyMapper;
import com.wms.pojo.Company;
import com.wms.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    private CompanyMapper companyMapper;

    @Override
    public List<Company> queryAll() {
        List<Company> companies = companyMapper.queryAll();
        return companies;
    }
}
